/**
 * @file open_protocol_tiny_port.h
 * @author Zhenling Pan(ryan.pan@dji.com)
 * @brief
 * @version 0.1
 * @date 2022-3-9
 *
 * @copyright Copyright (c) 2022
 *
 */

#ifndef _OPEN_PROTOCOL_TINY_PORT_H_
#define _OPEN_PROTOCOL_TINY_PORT_H_

#define TOTAL_HEAP_SIZE (3 * 1024) // 3K

//锁的实现, 需要自己移植，例子为arm内核的实现
// #include "core_cmFunc.h"

#define OPEN_PROTOCOL_MUTEX_DECLARE(mutex) unsigned long mutex
#define OPEN_PROTOCOL_MUTEX_INIT(mutex)                                        \
  do {                                                                         \
  } while (0)
#define OPEN_PROTOCOL_MUTEX_LOCK(mutex)                                        \
  do {                                                                         \
                                                                               \
  } while (0)
#define OPEN_PROTOCOL_MUTEX_UNLOCK(mutex)                                      \
  do {                                                                         \
  } while (0)

#endif
